package com.guli.order.client;

import com.guli.commonutils.bean.UcenterMember;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@Component
@FeignClient(name = "service-ucenter")
public interface UcentClient {
    @ApiOperation("根据token来获取用户信息")
    @GetMapping("/eduucenter/ucenter/getMemberByTokenToComment")
    public UcenterMember getMemberByTokenToComment(@RequestHeader("token")String token);
}
